Skip to content

virt-manager: Fix 'ImportError: No module named libvirt' and add Spice support#1475

Closed
wizeman wants to merge 2 commits intoNixOS:masterfrom
wizeman:u/libvirt
Closed

virt-manager: Fix 'ImportError: No module named libvirt' and add Spice support#1475
wizeman wants to merge 2 commits intoNixOS:masterfrom
wizeman:u/libvirt

Conversation

@wizeman
Copy link
Member

@wizeman wizeman commented Jan 8, 2014

The error was due to libvirt 1.2.0 no longer including the python bindings; it is
a separate package now.

Also added a missing Spice widget for virt-manager, it allows graphical interaction with VMs much faster than VNC.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you use buildPythonPackage here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried, but the derivation ended up with no files in it:

# find /nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0/lib
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0/lib/python2.7
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0/lib/python2.7/site-packages
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0/nix-support
/nix/store/b010qffb8hk103q172qzw6k9gdxzblyb-python2.7-libvirt-python-1.2.0/nix-support/propagated-native-build-inputs

@domenkozar
Copy link
Member

Aha, that's likely to get fixed with #1467

@wizeman
Copy link
Member Author

wizeman commented Jan 10, 2014

Rebased and added a missing Spice widget for virt-manager, it allows graphical interaction with VMs much faster than VNC.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spice_gtk is not present in nixpkgs? you forgot to push this part? is it in some other pull request i'm not seeing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garbas You're right, sorry. I have added and pushed the missing commit now.

Thanks!

The problem was that libvirt 1.2.0 no longer includes the python bindings; it is
a separate package now.
@garbas
Copy link
Member

garbas commented Jan 11, 2014

great. merged manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants